package org.qdao.util;


/**
 * 检查器
 * 
 * @author 譚元吉
 * @since 2010/02/25 10:43:46
 */
public class Inspector {

	/**
	 * 检查表创建语句 insecpt
	 * 
	 * @author tan
	 * @param modelClazz
	 *            2010/02/25 10:43:52
	 */
	public static void inspectOracleCreater(Class<?> modelClazz) {
		System.out.println(
				SQLTigger.getOracleCreateTigger(
						SQLTigger.getTableDescriptor(modelClazz)
				)
		);
	}
	
	/**
	 * 检查表创建语句 insecpt
	 * 
	 * @author tan
	 * @param modelClazz
	 *            2010/02/25 10:43:52
	 */
	public static void inspectMySqlCreater(Class<?> modelClazz) {
		System.out.println(
				SQLTigger.getMySqlCreateTigger(
						SQLTigger.getTableDescriptor(modelClazz)
				)
		);
	}	
}
